﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Repository.IRepository
{
    public interface IAvatarRepository 
    {
        /// <summary>
        /// 根据用户编码获取头像信息
        /// </summary>
        Task<AvatarModel> GetAvatarByUserCodeAsync(string userCode);

        /// <summary>
        /// 根据用户编码列表批量获取头像信息
        /// </summary>
        Task<List<AvatarModel>> GetAvatarsByUserCodesAsync(List<string> userCodes);

        Task<int> DisableOldAvatarsAsync(string userCode);
    }
}
